﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace IniTechCaash.Domain.Entities
{
    /// <summary>
    /// Represents a User of the IniTech Caash application. 
    /// </summary>
    public class User : AuditableEntity
    {
        /// <summary>
        /// <see cref="Descriptive"/> for <see cref="User"/> is "USR".
        /// </summary>
        public override string Descriptive
        {
            get { return "USR"; }
        }
        /// <summary>
        /// The username. 
        /// </summary>
        [StringLength(256)]
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// The password. 
        /// </summary>
        [Required]
        [StringLength(256)]
        public string UserPassword { get; set; }
    }
}
